package xyz.xtt.admin.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Update;
import xyz.xtt.admin.entity.TblChainTransaction;
import xyz.xtt.admin.entity.TblCollection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-11-21
 */
public interface CollectionMapper extends BaseMapper<TblCollection> {

    Page<TblCollection> getList(Page<Object> objectPage);

    @Update("update tbl_collection set top_time=#{topTime} where id=#{id}")
    boolean setTop(Long id, Long topTime);
}
